package com.hdl.school.entity;

import com.alibaba.fastjson.JSONObject;

public class SerialportInfo{
    private String portName;
    private String baudRate;

    public SerialportInfo(String portName, String baudRate) {
        this.portName = portName;
        this.baudRate = baudRate;
    }

    public SerialportInfo(JSONObject jsonObject) {
        this.portName = jsonObject.getString("portName");
        this.baudRate = jsonObject.getString("baudRate");
    }

    public String getPortName() {
        return portName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }

    public String getBaudRate() {
        return baudRate;
    }

    public void setBaudRate(String baudRate) {
        this.baudRate = baudRate;
    }
}
